//
//  DetailsBannerCell.m
//  Cat
//
//  Created by lushitong on 2018/12/23.
//  Copyright © 2018年 lushitong. All rights reserved.
//

#import "DetailsBannerCell.h"
#import "FLImageView.h"

@interface DetailsBannerCell()

@property (nonatomic, strong) FLImageView *backImageView;

@end

@implementation DetailsBannerCell

- (void)setImageURLString:(NSString *)imageURLString {
	[self.backImageView setImageUrl:[NSURL URLWithString:imageURLString] size:CGSizeMake(ScreenWidth, ScreenWidth) cornerRadius:0.0];
}

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		[self.contentView addSubview:self.backImageView];
		[self.backImageView mas_makeConstraints:^(MASConstraintMaker *make) {
			make.edges.equalTo(self.contentView);
		}];
	}
	return self;
}

#pragma mark----- lazy init -----

- (FLImageView *)backImageView {
	if (!_backImageView) {
		_backImageView = [[FLImageView alloc] init];
	}
	return _backImageView;
}

@end
